package atom.core0.global;

public class ThreadLocalCache {
	private static final ThreadLocal<String> tlModuleCode = new ThreadLocal<String>();
	private static final ThreadLocal<String> tlModuleName = new ThreadLocal<String>();
	
	private static final ThreadLocal<String> tlMessageId = new ThreadLocal<String>();
	public static String getMessageId()
	{
		String _messageId = tlMessageId.get();
		return _messageId;
	}
	public static void setMessageId(String _messageId)
	{
		tlMessageId.set(_messageId);
	}
	public static String getModuleCode()
	{
		String _moduleCode = tlModuleCode.get();
		return _moduleCode;
	}
	public static String getModuleName()
	{
		String _moduleName = tlModuleName.get();
		return _moduleName;
	}
	public static void setModuleCode(String _moduleCode)
	{
		tlModuleCode.set(_moduleCode);
	}
	public static void setModule(String _moduleCode,String _moduleName)
	{
		tlModuleCode.set(_moduleCode);
		tlModuleName.set(_moduleName);
	}

}
